package com.cdm.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cdm.dao.EvaluateMapper;
import com.cdm.pojo.Evaluate;

@Service
public class EvaluateService {
	
	@Autowired
	private EvaluateMapper  evaluateMapper;
	
	
	public List<Evaluate> getEvaluates(Map<String, Object> map){
		return this.evaluateMapper.getEvaluates(map);
	}
	
	public Integer getEvaluateCount(Map<String, Object> map){
		return this.evaluateMapper.getEvaluateConunt(map);
	}
	
	public Boolean addEvaluate(Map<String, Object> map){
		return this.evaluateMapper.addEvaluate(map)==1;
	}
	
	public List<Map<String, Object>> findMyEvaluate(Map<String, Object> map){
		return this.evaluateMapper.findMyEvaluate(map);
	}

	public Integer findMyEvaluateCount(Map<String, Object> map){
		return this.evaluateMapper.findMyEvaluateCount(map);
	}
	
	public Boolean deleteEvaluate(Map<String, Object> map){
		return this.evaluateMapper.deleteEvaluate(map) == 1;
	}
	
}
